import request from '@/utils/request';
import {httpUrl} from '@/utils/api'

export async function query(): Promise<any> {
  return request('/api/users');
}

export async function queryCurrent(): Promise<any> {
  return request(`${httpUrl}/currentUser`);
}

export async function queryNotices(): Promise<any> {
  return request('/api/notices');
}
